import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"


//查询
export const queryRoleApi = () => {
    return httpPost("/roles/search")
}

//添加
export const addRoleApi = (data) => {
    return httpPost("/roles/add", data)
}

//删除
export const deleteRoleApi = (data) => {
    return httpDelete("/roles/remove", data)
}

//修改
export const reviseRoleApi = (data) => {
    return httpPut("/roles/update", data)
}

//权限数据
export const gitPermissionsApi = (data) => {
    return httpPost("/permissions/search", data)
}

//查询单个
export const SingleRoleApi = (data) => {
    return httpGet("/roles/detail", data)
}